package com.lagou.orders.feign;

import com.lagou.domain.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @description:  远程调用商品微服务
 **/
@FeignClient(value = "lagou-service-goods", fallback = GoodsFeignFallback.class)
public interface GoodsFeign {

    @RequestMapping("/goods/getGoodsByIds")
    public List<Goods> getGoodsById(@RequestBody List<Integer> ids);

    @RequestMapping("/goods/getPort")
    public String getPort();
}
